<!-- head -->
{include file='public/head' /}
<!-- head -->

<!-- left -->
{include file='public/left' /}
<!-- left -->

<div class="content-wrapper">
    <section class="content-header">
        <h1>
            评价列表
            <small>项目评价</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 项目管理</a></li>
            <li class="active">项目列表</li>
            <li class="active">查看评价</li>
        </ol>
    </section>

    <section class="content">
        <div class="row">

            <div class="col-md-12">
                <!-- DIRECT CHAT SUCCESS -->
                <div class="box box-success direct-chat direct-chat-success">
                    <div class="box-header with-border">
                        <h3 class="box-title">评价详情</h3>

                        <div class="box-tools pull-right">
                            <span data-toggle="tooltip" title="3 New Messages" class="badge bg-green">3</span>
                            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                            </button>
                            <!--                            <button type="button" class="btn btn-box-tool" data-toggle="tooltip" title="Contacts" data-widget="chat-pane-toggle">
                                                            <i class="fa fa-comments"></i></button>-->
                            <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                        </div>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <!-- Conversations are loaded here -->
                        {volist name="commentList" id='admin'}
                        <div class="direct-chat-messages" style=" height: 100%">
                            <!-- Message. Default to the left -->
                            <div class="direct-chat-msg">
                                <div class="direct-chat-info clearfix">
                                    <span class="direct-chat-name pull-left">{$admin.custom.custom_name}</span>
                                    <span class="direct-chat-timestamp pull-right">
                                        {for start="0" end="$admin.star"}
                                        <span class="fa  fa-star"></span>
                                        {/for}
                                        {$admin.add_time|date='Y-m-d H:i:s',###}

                                    </span>
                                </div>
                                <!-- /.direct-chat-info -->
                                <img class="direct-chat-img" src="{:config('adminconfig.ImgPath')}/{$admin.custom.custom_photo}" alt="Message User Image"><!-- /.direct-chat-img -->
                                <div class="direct-chat-text">
                                    {$admin.content}
                                </div>
                                <!-- /.direct-chat-text -->
                            </div>
                            <!-- /.direct-chat-msg -->

                            <!-- Message to the right -->
                            <div class="direct-chat-msg right">
                                <div class="direct-chat-info clearfix">
                                    <span class="direct-chat-name pull-right">{$admin.staff.staff_name}</span>
                                    <span class="direct-chat-timestamp pull-left">{$admin.radd_time|date='Y-m-d H:i:s',###}</span>
                                </div>
                                <!-- /.direct-chat-info -->
                                <img class="direct-chat-img" src="{:config('adminconfig.ImgPath')}/{$admin.staff.staff_photo}" alt="Message User Image"><!-- /.direct-chat-img -->
                                <div class="direct-chat-text">
                                    {$admin.rcontent}
                                </div>
                                <!-- /.direct-chat-text -->
                            </div>
                            <!-- /.direct-chat-msg -->
                        </div><hr>
                        <!--/.direct-chat-messages-->
                        {/volist}
                    </div>
                    <div class="box-footer clearfix" style="text-align: center">
                        {$commentList->render()}
                    </div>
                </div>
                <!--/.direct-chat -->
            </div>
        </div>
    </section>
</div>
<script type="text/javascript">

    var dataId = 0;
    function edit(obj) {
        var url = $(obj).data('url');
        window.location.href = url;
    }
    function ShowMessage(obj) {
        var url = $(obj).data('url');
        window.location.href = url;
    }

    function del(id) {
        dataId = id;
        showConfirm('删除', '确认删除？', delManager);
    }

    function delManager() {
        $.ajax({
            url: "{:url('admin/Store/DelStore','','')}",
            type: 'GET',
            data: {
                'id': dataId,
            },
            dataType: 'JSON',
            success: function (data) {
                showAlert('提示', data.msg, null);
                if (data.code == 1) {

                }
            }
        });
    }

</script>

<!-- foot -->
{include file='public/foot' /}
<!-- foot -->